﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Paperless.Models
{
    public class TransactionModel : BaseModel
    {
        public string Name { get; set; }
        public string TransactionNo { get; set; }
        public DateTime? CloseDate { get; set; }
        public DateTime? ExpiredDate { get; set; }
        public DateTime? AcceptanceDate { get; set; }
        public string BuyerName { get; set; }
        public string SellerName { get; set; }
        public double ListPrice { get; set; }
        public double SellPrice { get; set; }
        public double TotalCommission { get; set; }
        public string CommissionSummary { get; set; }
        public string MoreInfo { get; set; }
        public string StatusName { get; set; }
        public string LocationName { get; set; }

        public bool IncludedInNextMonthlyBackup { get; set; }

        public long LocationId { get; set; }
        public long StatusId { get; set; }
        public string StaffId { get; set; }
        public string OutsideListingAgent { get; set; }
        public string OutsideSellingAgent { get; set; }

        public IEnumerable<AgentModel> AssignAgents { get; set; }
        public IEnumerable<ContactModel> Contacts { get; set; }
        public UserModel Staff { get; set; }
        public IEnumerable<NoteViewModel> Notes { get; set; }
    }

    public class TransactionSearchModel
    {
        public int? Count { get; set; }
        public int? Page { get; set; }
        public string Ascendings { get; set; }
        public string Descendings { get; set; }
        public string Name { get; set; }
    }
}